import request from '@/utils/request'

export function listfaultLevel(query) {
  return request({
    url: '/fault/faultLevel/list',
    method: 'get',
    params: query
  })
}

export function createfaultLevel(data) {
  return request({
    url: '/fault/faultLevel/create',
    method: 'post',
    data
  })
}

export function readfaultLevel(data) {
  return request({
    url: '/fault/faultLevel/get/' + data.id,
    method: 'get'
  })
}

export function updatefaultLevel(data) {
  return request({
    url: '/fault/faultLevel/update',
    method: 'post',
    data
  })
}

export function deletefaultLevel(data) {
  return request({
    url: '/fault/faultLevel/delete/' + data.ffaultno,
    method: 'delete'
  })
}
